<template>
	<view class="contain">
		<view class="wrap-header" :style="{ 'padding-top': top + 'px','background-image': 'url('+style['user_center_nav_background']+')' }">
			<view class="flex f-j-e h-44 padding-lr5">
				<!-- <view class="flex f-a-c f-j-c van-icon van-icon-qr f20-size t-color-3 padding-lr5"><text
						class="f12-size">{{i18n['会员码']}}</text></view> -->
				<view @click="go('/pages/setting/index')" class="flex f-a-c f-j-c van-icon van-icon-setting-o f20-size padding-lr5"></view>
				<!-- <view @click="go('/pages/chat/index')" class="flex f-a-c f-j-c van-icon van-icon-chat-o f20-size padding-lr5"></view> -->
				<xcx-header></xcx-header>
			</view>
			<view class="padding-lr15 flex">
				<view v-if="user != ''"  class="w-60 h-60 b-radius  bg-img margin-r12" :style="user.headImg | bgimg(300)+''"></view>
				<view v-else class="w-60 h-60 b-radius  bg-img margin-r12" :style="defaultImg | bgimg(300)+''"></view>
				<view class="flex f-c f-a-s">
					<view v-if="user == ''" @click="go('/pages/user/passport/login')" class="f22-size">{{i18n['登录']}} / {{i18n['注册']}}</view>
					<view v-if="user != ''"  class="f22-size" style="width:500rpx;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">{{user.nickname}}</view>
					<view class="f10-size padding-6 b-radius-2  t-color-w bg-color-linear-r margin-t6">
						{{i18n['Hi，欢迎登录']}}</view>
				</view>
			</view>
			<view class="flex margin-t15">

				<view @click="go('/pages/user/like')" class="flex flex-1 f-c f-a-c f-j-c">
					<view class="flex f-a-c f-j-c van-icon van-icon-star-o f24-size margin-b4"></view>
					<text class="f12-size">{{i18n['收藏夹']}}</text>
				</view>
				<view @click="go('/pages/user/likeshops')" class="flex flex-1 f-c f-a-c f-j-c">
					<view class="flex f-a-c f-j-c van-icon van-icon-sign f24-size margin-b4"></view>
					<text class="f12-size">{{i18n['关注店铺']}}</text>
				</view>
				<view @click="go('/pages/user/history')" class="flex flex-1 f-c f-a-c f-j-c">
					<view class="flex f-a-c f-j-c van-icon van-icon-clock-o f24-size margin-b4"></view>
					<text class="f12-size">{{i18n['足迹']}}</text>
				</view>
				<view @click="go('/pages/user/money/index')" class="flex flex-1 f-c f-a-c f-j-c">
					<text class="f16-size f-w-b">{{account? account.amount : "-"}}</text>
					<text class="f12-size margin-t6">{{i18n['余额']}}</text>
				</view>
			</view>
			<view class="padding-20"></view>
			<view class="wrap-coupon-btn flex b-radius-5 bg-color-w padding-10">
				<view @click="go('/pages/user/coupon/getlist')" class="flex flex-1 f-a-c f-j-s padding-lr2 wrap-coupon-btn-left margin-r10">
					<view class="flex f-c">
						<text class="f12-size f-w-b">{{i18n['红包卡券']}}</text>
						<view class="flex f-a-c">
							<text class="f10-size t-color-y margin-r4">{{i18n['领取优惠券']}}</text>
							<text class="flex f-a-c van-icon van-icon-arrow t-color-y f12-size"></text>
						</view>
					</view>
					<image src="../../static/images/user_coupon_icon.png" mode="widthFix" class="w-36 margin-r12">
					</image>
				</view>
				<view @click="go('/pages/user/money/point')" class="flex flex-1 f-a-c f-j-s padding-lr2">
					<view class="flex f-c">
						<text class="f12-size f-w-b">{{i18n['我的积分']}}</text>
						<view class="flex f-a-c">
							<text class="f10-size t-color-y margin-r4">{{i18n['查看积分明细']}}</text>
							<text class="flex f-a-c van-icon van-icon-arrow t-color-y f12-size"></text>
						</view>
					</view>
					<image src="../../static/images/user_vip_icon.png" mode="widthFix" class="w-36 margin-r12"></image>
				</view>
			</view>
		</view>
		<view class="padding-12"></view>


		<view class="padding-lr12">
			<view class="bg-color-w b-radius-5 margin-t12">

						<view class=" flex  wrap-nav">
							<view @click="go('/pages/order/order?type=1')" class="flex flex-1 f-s-0 f-c f-a-c f-j-c p-r">
								<text v-if="order != '' && order.waitPayNum" class="order-num flex f-a-c f-j-c h-16 b-radius-30 bg-color-r t-color-w f10-size">{{order.waitPayNum}}</text>
								<text class="flex f-a-c van-icon van-icon-pending-payment f24-size"></text>
								<text class="f12-size margin-t2">{{i18n['待支付']}}</text>
							</view>
							<view @click="go('/pages/order/order?type=2')" class="flex flex-1 f-s-0 f-c f-a-c f-j-c p-r">
								<text v-if="order != '' && order.waitDeliveryNum" class="order-num flex f-a-c f-j-c h-16 b-radius-30 bg-color-r t-color-w f10-size">{{order.waitDeliveryNum}}</text>
								<text class="flex f-a-c van-icon van-icon-send-gift-o f24-size"></text>
								<text class="f12-size margin-t2">{{i18n['待发货']}}</text>
							</view>
							<view @click="go('/pages/order/order?type=3')" class="flex flex-1 f-s-0 f-c f-a-c f-j-c p-r">
								<text v-if="order != '' && order.waitWriteOffNum" class="order-num flex f-a-c f-j-c h-16 b-radius-30 bg-color-r t-color-w f10-size">{{order.waitWriteOffNum}}</text>
								<text class="flex f-a-c van-icon van-icon-tosend f24-size"></text>
								<text class="f12-size margin-t2">{{i18n['待核销']}}</text>
							</view>
							<view @click="go('/pages/order/order?type=4')" class="flex flex-1 f-s-0 f-c f-a-c f-j-c p-r">
								<text v-if="order != '' && order.waitReceiveNum" class="order-num flex f-a-c f-j-c h-16 b-radius-30 bg-color-r t-color-w f10-size">{{order.waitReceiveNum}}</text>
								<text class="flex f-a-c van-icon van-icon-logistics f24-size"></text>
								<text class="f12-size margin-t2">{{i18n['待收货']}}</text>
							</view>
							<view @click="go('/pages/comment/commentlist')" class="flex flex-1 f-s-0 f-c f-a-c f-j-c p-r">
								<text v-if="order != '' && order.waitCommentNum" class="order-num flex f-a-c f-j-c h-16 b-radius-30 bg-color-r t-color-w f10-size">{{order.waitCommentNum}}</text>
								<text class="flex f-a-c van-icon van-icon-comment-o f24-size"></text>
								<text class="f12-size margin-t2">{{i18n['待评价']}}</text>
							</view>
							<view @click="go('/pages/user/refundlist')" class="flex flex-1 f-s-0 f-c f-a-c f-j-c nav-last-item p-r">
								<text v-if="order != '' && order.refundNum" class="order-num flex f-a-c f-j-c h-16 b-radius-30 bg-color-r t-color-w f10-size">{{order.refundNum}}</text>
								<text class="flex f-a-c van-icon van-icon-tosend f24-size t-color-y"></text>
								<text class="f12-size margin-t2">{{i18n['退货/售后']}}</text>
							</view>
						</view>




				<!-- <view v-if="orderList.length > 0" class="padding-15">
					<swiper class="h-50" circular :vertical="true" :indicator-dots="false" :autoplay="true" :interval="5000" >
						<swiper-item v-for="(item,index) in orderList">
							<view @click="go('/pages/order/detail?id='+item.orderId)"  class="flex b-radius-5 bg-color-f7 over-h">
								<view class="flex f-s-0 w-50 h-50 b-radius-5 bg-img  margin-r10" :style="item.goodsMainImg | bgimg(300)+''"></view>
								<block v-if="item.status  == 0">
								<view class="flex f-c f-j-c flex-1">
									<text class="f13-size">{{i18n['待支付']}}</text>
									<uni-countdown class="margin-t6" v-if="orderState[order.status]['value'] == 'dzf' && cancelTime > 0"  color="#9B9B9B" splitorColor="#9B9B9B" :font-size="11" :second="cancelTime" />
								</view>
								<view class="flex f-a-c padding-lr12">
									<view class="flex f-a-c f-j-c bg-color-linear-y w-60 h-30 b-radius-30 t-color-w f12-size">去支付</view>
								</view>
								</block>
								<block v-else>
								<view class="flex f-c f-j-c flex-1">
									<text class="f13-size p-r" style="top: 4px;">{{i18n['待评价']}}</text>
									<uni-countdown  class=""   color="#9B9B9B" splitorColor="#9B9B9B" backgroundColor="#f7f7f7" :font-size="11" :second="item.commentExpiredTime-Number(now)" />
								</view>
								<view class="flex f-a-c padding-lr12">
									<view class="flex f-a-c f-j-c f-s-0 padding-lr10 h-24  b-radius-30 f11-size b-color-y t-color-y ">{{i18n['去评价']}}</view>
								</view>
								</block>
							</view>
						</swiper-item>
					</swiper>
				</view> -->
			</view>


			<view class="margin-t10" @click="go('/pages/index/franchise')" >

				<image  mode="widthFix" style="width:100%;height:120rpx"
				  src="http://qiniu.ccchongya.com/lekshop/zhaoshang.png"
				/>
			</view>


			<view class="bg-color-w b-radius-5 margin-t12">



				<view class="padding-lr10">
					<view @click="go('/pages/order/order')" class="flex h-40  f-a-c f-j-s">
						<text class="f15-size">托运订单</text>
					<!-- 	<view class="flex f-a-c">
							<text class="f12-size t-color-9 margin-r4">{{i18n['全部']}}</text>
							<text class="flex f-a-c f-j-c van-icon van-icon-arrow t-color-9 f16-size"></text>
						</view> -->
					</view>
				</view>

				<view class=" flex  wrap-nav">
					<view @click="go('/pages/ys/order/entrust')" class="flex flex-1 f-s-0 f-c f-a-c f-j-c p-r">
						<text class="flex f-a-c van-icon van-icon-pending-payment f24-size"></text>
						<text class="f12-size margin-t2">托运订单</text>
					</view>
					<view @click="go('/pages/ys/order/chase')" class="flex flex-1 f-s-0 f-c f-a-c f-j-c p-r">
						<!-- <text v-if="order != '' && order.waitDeliveryNum" class="order-num flex f-a-c f-j-c h-16 b-radius-30 bg-color-r t-color-w f10-size">{{order.waitDeliveryNum}}</text> -->
						<text class="flex f-a-c van-icon van-icon-send-gift-o f24-size"></text>
						<text class="f12-size margin-t2">抢单大厅</text>
					</view>
					<view @click="go('/pages/ys/order/myChase')" class="flex flex-1 f-s-0 f-c f-a-c f-j-c p-r">
						<!-- <text v-if="order != '' && order.waitDeliveryNum" class="order-num flex f-a-c f-j-c h-16 b-radius-30 bg-color-r t-color-w f10-size">{{order.waitDeliveryNum}}</text> -->
						<text class="flex f-a-c van-icon van-icon-send-gift-o f24-size"></text>
						<text class="f12-size margin-t2">我的抢单</text>
					</view>
					<!-- <view @click="go('/pages/order/order?type=3')" class="flex flex-1 f-s-0 f-c f-a-c f-j-c p-r">
						<text v-if="order != '' && order.waitReceiveNum" class="order-num flex f-a-c f-j-c h-16 b-radius-30 bg-color-r t-color-w f10-size">{{order.waitReceiveNum}}</text>
						<text class="flex f-a-c van-icon van-icon-logistics f24-size"></text>
						<text class="f12-size margin-t2">{{i18n['待收货']}}</text>
					</view>
					<view @click="go('/pages/comment/commentlist')" class="flex flex-1 f-s-0 f-c f-a-c f-j-c p-r">
						<text v-if="order != '' && order.waitCommentNum" class="order-num flex f-a-c f-j-c h-16 b-radius-30 bg-color-r t-color-w f10-size">{{order.waitCommentNum}}</text>
						<text class="flex f-a-c van-icon van-icon-comment-o f24-size"></text>
						<text class="f12-size margin-t2">{{i18n['待评价']}}</text>
					</view> -->

				</view>

			</view>

			<view class="bg-color-w b-radius-5 margin-t12" >


				<view class="padding-lr10">
					<view  class="flex h-40  f-a-c f-j-s">
						<text class="f15-size">我的入驻</text>

					</view>
				</view>

	<!-- <view @click="go('/pages/product/addGoods/index?mer_id=undefined&product_id=209')" class="flex flex-1 f-c f-a-c f-j-c"> -->
				<view class="bg-color-w b-radius-5  flex f-w " style="padding-top: 12px;">
				<!-- 	<view @click="go('/pages/shops/editinfo')" class="flex f-s-0 f-c btn-item">
						<view class="flex f-a-c f-j-c h-30">
								<text class="flex f-a-c f-j-c myicon myicon-dianpuxinxi  f18-size  t-color-w bg-color-y b-radius-30  padding-6 "></text>
						</view>
						<view class="flex f-j-c f12-size t-color-6 margin-t2">店铺信息</view>
					</view> -->
					<!-- <view  @click="go('/pages/other/merchantApply')" class="flex f-s-0 f-c btn-item">
						<view class="flex f-a-c f-j-c h-30">
								<text class="flex f-a-c f-j-c myicon myicon-dianpuxinxi  f18-size  t-color-w bg-color-y b-radius-30  padding-6 "></text>
						</view>
						<view class="flex f-j-c f12-size t-color-6 margin-t2">入驻信息</view>
					</view> -->

					<view @click="go('/pages/product/list/index')" class="flex f-s-0 f-c btn-item" v-if="user.isMer">
						<view class="flex f-a-c f-j-c h-30">
							<text class="flex f-a-c f-j-c myicon myicon-fuwu1 f24-size t-color-y"></text>
						</view>
						<view class="flex f-j-c f12-size t-color-6 margin-t2">我的服务</view>
					</view>
					<view @click="go('/pages/product/list/index')" class="flex f-s-0 f-c btn-item" v-if="user.isMer">
						<view class="flex f-a-c f-j-c h-30">
							<text class="flex f-a-c f-j-c myicon myicon-shangpinguanli f24-size t-color-g"></text>
						</view>
						<view class="flex f-j-c f12-size t-color-6 margin-t2">产品管理</view>
					</view>
					<view @click="go('/pages/admin/order/index?mer_id='+account.id)" class="flex f-s-0 f-c btn-item" v-if="user.isMer">
						<view class="flex f-a-c f-j-c h-30">
							<text class="flex f-a-c f-j-c myicon myicon-wodedingdan f26-size t-color-r"></text>
						</view>
						<view class="flex f-j-c f12-size t-color-6 margin-t2">订单管理</view>
					</view>
					<view @click="go('/pages/user/money/bzj')" class="flex f-s-0 f-c btn-item">
						<view class="flex f-a-c f-j-c h-30">
							<text class="flex f-a-c f-j-c myicon myicon-icon_baozhengjin f24-size t-color-y"></text>
						</view>
						<view class="flex f-j-c f12-size t-color-6 margin-t2">保证金</view>
					</view>
					<view @click="go('/pages/other/trusteeship')" class="flex f-s-0 f-c btn-item" v-if="user.isMer">
						<view class="flex f-a-c f-j-c h-30">
							<text class="flex f-a-c f-j-c myicon myicon-shuikongshebeituoguan f24-size t-color-y"></text>
						</view>
						<view class="flex f-j-c f12-size t-color-6 margin-t2">店铺托管</view>
					</view>
				<!-- 	<view @click="go('/pages/user/spread_code')" class="flex f-s-0 f-c btn-item">
						<view class="flex f-a-c f-j-c h-30">
							<text class="flex f-a-c f-j-c myicon myicon-cuxiaohaibao f24-size t-color-g"></text>
						</view>
						<view class="flex f-j-c f12-size t-color-6 margin-t2">海报下载</view>
					</view> -->

				</view>



			</view>





		<!-- 	<view class="bg-color-w b-radius-5 margin-t12">



				<view class="padding-lr10">
					<view @click="go('/pages/order/order')" class="flex h-40  f-a-c f-j-s">
						<text class="f15-size">我的小店</text>
						<view class="flex f-a-c">
							<text class="f12-size t-color-9 margin-r4">{{i18n['全部']}}</text>
							<text class="flex f-a-c f-j-c van-icon van-icon-arrow t-color-9 f16-size"></text>
						</view>
					</view>
				</view>

				<view class=" flex  wrap-nav">
					<view @click="go('/pages/order/order?type=1')" class="flex flex-1 f-s-0 f-c f-a-c f-j-c p-r">
						<text class="flex f-a-c van-icon van-icon-pending-payment f24-size"></text>
						<text class="f12-size margin-t2">{{i18n['待支付']}}</text>
					</view>
					<view @click="go('/pages/order/order?type=2')" class="flex flex-1 f-s-0 f-c f-a-c f-j-c p-r">
						<text v-if="order != '' && order.waitDeliveryNum" class="order-num flex f-a-c f-j-c h-16 b-radius-30 bg-color-r t-color-w f10-size">{{order.waitDeliveryNum}}</text>
						<text class="flex f-a-c van-icon van-icon-send-gift-o f24-size"></text>
						<text class="f12-size margin-t2">{{i18n['待发货']}}</text>
					</view>
					<view @click="go('/pages/order/order?type=3')" class="flex flex-1 f-s-0 f-c f-a-c f-j-c p-r">
						<text v-if="order != '' && order.waitReceiveNum" class="order-num flex f-a-c f-j-c h-16 b-radius-30 bg-color-r t-color-w f10-size">{{order.waitReceiveNum}}</text>
						<text class="flex f-a-c van-icon van-icon-logistics f24-size"></text>
						<text class="f12-size margin-t2">{{i18n['待收货']}}</text>
					</view>
					<view @click="go('/pages/comment/commentlist')" class="flex flex-1 f-s-0 f-c f-a-c f-j-c p-r">
						<text v-if="order != '' && order.waitCommentNum" class="order-num flex f-a-c f-j-c h-16 b-radius-30 bg-color-r t-color-w f10-size">{{order.waitCommentNum}}</text>
						<text class="flex f-a-c van-icon van-icon-comment-o f24-size"></text>
						<text class="f12-size margin-t2">{{i18n['待评价']}}</text>
					</view>

				</view>


			</view> -->





			<!-- <view class="bg-color-w b-radius-5  flex margin-t12 wrap-nav">
				<view @click="go('/pages/user/coupon/list')" class="flex flex-1 f-s-0 f-c f-a-c f-j-c">
					<text class="f16-size f-w-b">0</text>
					<text class="f12-size margin-t6">{{i18n['我的卡券']}}</text>
				</view>
				<view @click="go('/pages/user/money/index')" class="flex flex-1 f-s-0 f-c f-a-c f-j-c">
					<text class="f16-size f-w-b">{{account != '' ? account.amount : 0}}</text>
					<text class="f12-size margin-t6">{{i18n['余额']}}</text>
				</view>
				<view @click="go('/pages/user/bank')" class="flex flex-1 f-s-0 f-c f-a-c f-j-c">
					<text class="f16-size f-w-b">0</text>
					<text class="f12-size margin-t6">{{i18n['银行卡']}}</text>
				</view>
				<view class="flex flex-1 f-s-0 f-c f-a-c f-j-c">
					<text class="f16-size f-w-b">{{account != '' ? account.point : 0}}</text>
					<text class="f12-size margin-t6">{{i18n['积分']}}</text>
				</view>
				<view @click="go('/pages/user/money/zijinlog')" class="flex flex-1 f-s-0 f-c f-a-c f-j-c nav-last-item">
					<text class="flex f-a-c van-icon van-icon-bill-o f24-size t-color-y"></text>
					<text class="f12-size margin-t2">{{i18n['账单明细']}}</text>
				</view>
			</view> -->






			<view class="bg-color-w b-radius-5  flex f-w margin-t12" style="padding-top: 12px;">
				<view @click="go('/pages/user/money/index')" class="flex f-s-0 f-c btn-item">
					<view class="flex f-a-c f-j-c h-30">
						<text class="flex f-a-c f-j-c myicon myicon-qianbao f28-size t-color-y1 bg-color-w b-radius-30   "></text>
					</view>
					<view class="flex f-j-c f12-size t-color-6 margin-t2">{{i18n['钱包']}}</view>
				</view>
				<view @click="go('/pages/user/coupon/list')" class="flex f-s-0 f-c btn-item">
					<view class="flex f-a-c f-j-c h-30">
						<text class="flex f-a-c f-j-c myicon myicon-qiaquan f24-size t-color-r"></text>
					</view>
					<view class="flex f-j-c f12-size t-color-6 margin-t2">{{i18n['我的卡券']}}</view>
				</view>
				<view @click="go('/pages/comment/commentlist')" class="flex f-s-0 f-c btn-item">
					<view class="flex f-a-c f-j-c h-30">
						<text class="flex f-a-c f-j-c myicon myicon-pinglun f24-size"></text>
					</view>
					<view class="flex f-j-c f12-size t-color-6 margin-t2">{{i18n['评论']}}</view>
				</view>
				<view @click="go('/pages/user/address')" class="flex f-s-0 f-c btn-item">
					<view class="flex f-a-c f-j-c h-30">
						<text class="flex f-a-c f-j-c myicon myicon-dizhi f26-size"></text>
					</view>
					<view class="flex f-j-c f12-size t-color-6 margin-t2">{{i18n['收货地址']}}</view>
				</view>
				<view @click="go('/pages/user/user_invoice_list/index')" class="flex f-s-0 f-c btn-item">
					<view class="flex f-a-c f-j-c h-30">
						<text class="flex f-a-c f-j-c  van-icon van-icon-sign f26-size"></text>
					</view>
					<view class="flex f-j-c f12-size t-color-6 margin-t2">发票管理</view>
				</view>

				<view @click="go('/pages/user/credit')" class="flex f-s-0 f-c btn-item">
					<view class="flex f-a-c f-j-c h-30">
						<text class="flex f-a-c f-j-c myicon myicon-qiandao f24-size  t-color-r"></text>
					</view>
					<view class="flex f-j-c f12-size t-color-6 margin-t2">{{i18n['签到']}}</view>
				</view>
				<!-- <view class="flex f-s-0 f-c btn-item">
					<view class="flex f-a-c f-j-c h-30">
						<text class="flex f-a-c f-j-c myicon myicon-jilu f24-size"></text>
					</view>
					<view class="flex f-j-c f12-size t-color-6 margin-t2">{{i18n['我的举报']}}</view>
				</view> -->
				<view @click="go('/pages/user/advice')" class="flex f-s-0 f-c btn-item">
					<view class="flex f-a-c f-j-c h-30">
						<text class="flex f-a-c f-j-c myicon myicon-yijianfankui f28-size"></text>
					</view>
					<view class="flex f-j-c f12-size t-color-6 margin-t2">{{i18n['反馈']}}</view>
				</view>
				<view @click="go('/pages/user/help')" class="flex f-s-0 f-c btn-item">
					<view class="flex f-a-c f-j-c h-30">
						<text class="flex f-a-c f-j-c myicon myicon-bangzhuzhongxin1 f26-size  t-color-blue"></text>
					</view>
					<view class="flex f-j-c f12-size t-color-6 margin-t2">{{i18n['帮助中心']}}</view>
				</view>
				<!-- <view @click="goService(2)" class="flex f-s-0 f-c btn-item">
					<view class="flex f-a-c f-j-c h-30">
						<text class="flex f-a-c f-j-c myicon myicon-kefu1 f24-size"></text>
					</view>
					<view class="flex f-j-c f12-size t-color-6 margin-t2">{{i18n['智能小蜜']}}</view>
				</view> -->
				<view @click="go('/pages/find/user')" class="flex f-s-0 f-c btn-item">
					<view class="flex f-a-c f-j-c h-30">
						<text class="flex f-a-c f-j-c myicon myicon-chuangzuo f28-size  t-color-y"></text>
					</view>
					<view class="flex f-j-c f12-size t-color-6 margin-t2">{{i18n['创作中心']}}</view>
				</view>
			<!-- 	<view @click="go('/pages/other/trusteeship')" class="flex f-s-0 f-c btn-item">
					<view class="flex f-a-c f-j-c h-30">
						<text class="flex f-a-c f-j-c myicon myicon-tuoguan f24-size  t-color-y"></text>
					</view>
					<view class="flex f-j-c f12-size t-color-6 margin-t2">托管</view>
				</view> 
				<view @click="go('/pages/other/merchantApply?shoptype=3')"  class="flex f-s-0 f-c btn-item">
					<view class="flex f-a-c f-j-c h-30">
						<text class="flex f-a-c f-j-c myicon myicon-gongyi f24-size  t-color-g"></text>
					</view>
					<view class="flex f-j-c f12-size t-color-6 margin-t2">宠物公益</view>
				</view>-->

				<view @click="go('/pages/other/salvation/salvation')" class="flex f-s-0 f-c btn-item">
					<view class="flex f-a-c f-j-c h-30">
						<text class="flex f-a-c f-j-c myicon myicon-yaopinyuanzhu f24-size t-color-y"></text>
					</view>
					<view class="flex f-j-c f12-size t-color-6 margin-t2">援助站</view>
				</view>


				<view @click="go('/pages/other/adopt/adopt')" class="flex f-s-0 f-c btn-item">
					<view class="flex f-a-c f-j-c h-30">
						<text class="flex f-a-c f-j-c myicon myicon-lingqujilu f24-size t-color-g"></text>
					</view>
					<view class="flex f-j-c f12-size t-color-6 margin-t2">领养</view>
				</view>

				<view @click="go('/pages/user/spread_code')" class="flex f-s-0 f-c btn-item">
					<view class="flex f-a-c f-j-c h-30">
						<text class="flex f-a-c f-j-c myicon myicon-cuxiaohaibao f24-size t-color-g"></text>
					</view>
					<view class="flex f-j-c f12-size t-color-6 margin-t2">推广海报</view>
				</view>

				<view @click="go('/pages/setting/index')" class="flex f-s-0 f-c btn-item">
					<view class="flex f-a-c f-j-c h-30">
						<text class="flex f-a-c f-j-c myicon myicon-setting f24-size"></text>
					</view>
					<view class="flex f-j-c f12-size t-color-6 margin-t2">{{i18n['设置']}}</view>
				</view>
			</view>






				<view class="flex-row equal-division_5 margin-t10">
				  <view  @click="go('/pages/other/merchantApply')" class="flex-row justify-center items-center equal-division-item_5 section_8 space-x-10">
					<image
					  class="image_7"
					  src="https://qiniu.ccchongya.com/chongya/images/16947555426126497816.png"
					/>
					<text class="font_7">商家入驻</text>
				  </view>
				 <view @click="go('/pages/other/merchantApply?shoptype=2')"  class="flex-row justify-center items-center equal-division-item_6 section_9 space-x-6">
				 					<image
				 					  class="image_7"
				 					  src="https://qiniu.ccchongya.com/chongya/images/16947555432555508429.png"
				 					/>
				 					<text class="font_7">运输入驻</text>
				 </view>

				</view>


			<view class="flex-col justify-start items-center relative lxwm"  @tap="callPhone(4008832292)">
			  <image
			    class="shrink-0 image_8"
			    src="https://qiniu.ccchongya.com/chongya/images/16947555422448857572.png"
			  />
			  <text class="font_3 text_13 pos_8">联系我们</text>
			  <text class="text_14 pos_9">400-883-2292</text>
			  <image
			    class="shrink-0 image_9 pos_7"
			    src="https://qiniu.ccchongya.com/chongya/images/16947555422961045480.png"
			  />
			</view>




			<view style="margin: 100rpx 0;"></view>

			<!-- <view class="flex f-a-c f-j-c margin-t12">
				<image class="h-18" src="../../static/images/guess_you_like_it.png" mode="heightFix"></image>
			</view>
			<view class="padding-6"></view>
			<goodslist  :list="list"></goodslist> -->
		</view>
		<notice></notice>










		<tab-bar ref="tabbar" :active="4"></tab-bar>
	</view>
</template>
<style scoped>
	@import url('../../static/css/user/index.css');
	@import url('../../static/css/iconcolor.css');

		@import url('../../static/css/style.css');
		.equal-division_5 {
		  margin-right: 8rpx;
		}
		.equal-division-item_5 {
		  flex: 1 1 340rpx;
		}
		.section_8 {
		  padding: 32rpx 84rpx;
		  background-image: linear-gradient(108.4deg, #82a3ff -2.9%, #487aff 98.3%, #4578ff 99.3%);
		  border-radius: 16rpx;
		  height: 100rpx;
		}
		.space-x-10 > view:not(:first-child),
		.space-x-10 > text:not(:first-child),
		.space-x-10 > image:not(:first-child) {
		  margin-left: 20rpx;
		}
		.image_7 {
		  width: 32rpx;
		  height: 32rpx;
		}
		.font_7 {
		  font-size: 28rpx;
		  line-height: 26rpx;
		  color: #ffffff;
		}
		.equal-division-item_6 {
		  flex: 1 1 340rpx;
		  margin-left: 24rpx;
		}
		.section_9 {
		  padding: 32rpx 0;
		  background-image: linear-gradient(106.9deg, #fa7a7a 0%, #ff5252 100%);
		  border-radius: 16rpx;
		  height: 100rpx;
		}
		.space-x-6 > view:not(:first-child),
		.space-x-6 > text:not(:first-child),
		.space-x-6 > image:not(:first-child) {
		  margin-left: 12rpx;
		}
	.font_3 {
	  font-size: 24rpx;
	  line-height: 22rpx;
	  color: #808080;
	}

</style>
<script>
	const shopsAPI = require('@/utils/api/shops.js').default;
	const API = require('@/utils/api/user.js').default;
	const $ = require('@/utils/api.js');
	let self;
	export default {
		data() {
			return {
				top: uni.getStorageSync('bartop') ? uni.getStorageSync('bartop') : 0,
				isIphonex: uni.getStorageSync('isIphonex') ? uni.getStorageSync('isIphonex') : false,
				list: [],
				user: '',
				account: '',
				order: '',
				defaultImg: '',
				orderList: [],
				now: 0,
				style: '',
			};
		},
		onLoad: function() {
			self = this;
			// this.getList();
			let config = uni.getStorageSync('config') ? uni.getStorageSync('config') : '';
			self.defaultImg = config != '' ? config.default_head_img : '';
			this.getStyle().then((res) => {
				self.style= res;
			})
		},
		onShow:function(){
			this.init();
		},
		methods: {

			callPhone(phoneNumber) {
			  uni.makePhoneCall({
				phoneNumber: phoneNumber, // 电话号码
				success: function () {
				  console.log('拨打电话成功');
				},
				fail: function () {
				  console.log('拨打电话失败');
				}
			  });
			},

			centerOrderList() {
				// const self = this;
				// $.ajax({
				// 	url: API.centerOrderList,
				// 	data: {},
				// 	isAuth: true,
				// 	method: 'GET',
				// 	success(res) {
				// 		self.orderList = res.data ? res.data : [];
				// 		self.now = res.now;
				// 	}
				// })
				
				uni.stopPullDownRefresh();
			},
			updateImg() {
				$.uploadimg({
					url: API.updateHeadImgApi,
					success(res) {
						self.user.headImg = res;
						uni.setStorageSync('userInfo',self.user);
					}
				})
			},
			getAccount() {
				$.ajax({
					url: API.getAccountApi,
					data: {},
					isAuth: true,
					method: 'GET',
					success(res) {
						self.account = res.data ? res.data : '';
						uni.stopPullDownRefresh();
					},
					error(res) {
						uni.stopPullDownRefresh();
					}
				})
			},
			getUserInfo() {
				self.getUser({
					success(res) {
						self.user = res;
						uni.setStorageSync('userInfo',self.user);
						uni.stopPullDownRefresh();
					},
					error(res) {
						uni.stopPullDownRefresh();
					}
					
				})
			},
			getList() {
				$.ajax({
					url: shopsAPI.likeListApi,
					isAuth: true,
					data: {
						page: 1,
						pageSize: 20
					},
					method: 'GET',
					success(res) {
						self.list = res.data.list ? res.data.list : [];
					}
				})
			},
			getOrderNum() {
				$.ajax({
					url: API.getOrderNum,
					data: {},
					isAuth: true,
					method: 'GET',
					success(res) {
						self.order = res.data ? res.data :'';
						uni.stopPullDownRefresh();
					},
					error(res) {
						uni.stopPullDownRefresh();
					}
				})
			},
			init() {
				this.getUserInfo();
				this.getAccount();
				this.getOrderNum();
				this.centerOrderList();
				// this.$nextTick(() => {
				// 	this.$refs.tabbar.getChatLen();
				// })
			},
		},
		created() {},
		computed: {
			i18n() {
				return this.$t('user')
			},
		},
		mounted() {},
		destroyed() {},
		components: {},
		onPullDownRefresh() {
			
			setTimeout(()=>{
					uni.stopPullDownRefresh();
			},1500);
			
			
			this.isLogin = this.$mStore.getters.isLogin;
			console.log("isLogin,",this.isLogin)
			if (this.isLogin) {
			  this.init();
			}else{
				console.log('未登录');
					uni.stopPullDownRefresh();
			}
		},
		onReachBottom() {}
	}
</script>
